package com.chen.mysqltopostgres.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author: cgd
 * @description:
 * @date: 2022/8/1 15:28
 * @version: 1.0
 */
public class Constant {
    /**
     * 换行符
     */
    public static final String SEPARATOR = System.getProperty("line.separator");

    /**
     * 注解
     */
    public static final String COMMENT = "COMMENT";

    /**
     * mysql 自增标识
     */
    public static final String MYSQL_AUTO_INCREMENT = "AUTO_INCREMENT";

    /**
     * 主键标识
     */
    public static final String PRIMARY_KEY = "PRIMARY KEY";

    /**
     * 默认关键字
     */
    public static final String DEFAULT = "DEFAULT";

    /**
     * mysql 唯一索引关键字
     */
    public static final String UNIQUE_KEY = "UNIQUE KEY";

    /**
     * mysql 索引关键字
     */
    public static final String KEY = "KEY";

    /**
     * pgsql 创建索引
     */
    public static final String CREATE_INDEX = "CREATE INDEX";

    /**
     * pgsql 创建唯一索引
     */
    public static final String CREATE_UNIQUE_INDEX = "CREATE UNIQUE INDEX";

    /**
     * pgsql保留字，必须用大写内容
     */
    public static final List<String> PG_RESERVED_WORD = Arrays.asList("NOT", "NULL", "DEFAULT");
}
